package cc.lj.internal.coupons.domain.ticket.model.vo.convert;

import cc.lj.internal.coupons.domain.ticket.model.vo.TicketPackageBatchDO;
import cc.lj.internal.coupons.infrastructure.po.TicketPackageBatchPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 券包与券批关系表 PO 与 DO之间的转换
 * @author liangxifeng
 * @date 2022-08-23
 */
@Mapper
public interface TicketPackageBatchPOConvertDO {
    TicketPackageBatchPOConvertDO INSTANCE = Mappers.getMapper(TicketPackageBatchPOConvertDO.class);
    //do to po
    TicketPackageBatchPO convert(TicketPackageBatchDO packageBatchDO);

    //po to do
    TicketPackageBatchDO convert(TicketPackageBatchPO packageBatchPO);
}
